package com.teprinciple.wanandroid.data

data class Article(
    val type: Int,
    val title: String,
    val niceShareDate: String,
    val superChapterName: String,
    val chapterName: String,
    val shareUser: String,
    val link: String,
    val envelopePic: String,
    val desc: String,
    var collect: Boolean,
    val fresh: Boolean,
) {

    companion object {
        val testData = arrayListOf(
            Article(
                type = 0,
                title = "Android 启动优化（一） - 有向无环图",
                niceShareDate = "刚刚",
                superChapterName = "广场Tab",
                chapterName = "自助",
                shareUser = "程序员徐公",
                link = "https://mp.weixin.qq.com/s/xWYe-uxgXTPuitYcLgXYNg",
                envelopePic = "",
                desc = "",
                collect = false,
                fresh = true
            ),

            Article(
                type = 0,
                title = "Android Window 如何确定大小/onMeasure()多次执行原因",
                niceShareDate = "1小时前",
                superChapterName = "广场Tab",
                chapterName = "自助",
                shareUser = "程序员徐公",
                link = "https://mp.weixin.qq.com/s/xWYe-uxgXTPuitYcLgXYNg",
                envelopePic = "",
                desc = "",
                collect = true,
                fresh = true
            ),

            Article(
                type = 0,
                title = "EasyChat是一款开源的社交类的App。主要包含消息、好友、群组等相关的IM核心功能",
                niceShareDate = "2小时前",
                superChapterName = "广场Tab",
                chapterName = "自助",
                shareUser = "鸿洋",
                link = "https://mp.weixin.qq.com/s/xWYe-uxgXTPuitYcLgXYNg",
                envelopePic = "",
                desc = "本项目使用 MVVM 模式架构，使用 Jetpack 组件实现，功能代码实现组件化，目标是编写一个 玩安卓 客户端\n" +
                        "目前 MVVM 框架已经完成，Http 框架已经完成。玩安卓客户端功能代码正在进行中，组件化将在基础功能实现之后完成，请持续关注。。。",
                collect = false,
                fresh = true
            ),

            Article(
                type = 0,
                title = "Android 启动优化（一） - 有向无环图",
                niceShareDate = "1小时前",
                superChapterName = "广场Tab",
                chapterName = "自助",
                shareUser = "程序员徐公",
                link = "https://mp.weixin.qq.com/s/xWYe-uxgXTPuitYcLgXYNg",
                envelopePic = "",
                desc = "",
                collect = false,
                fresh = true
            ),

            Article(
                type = 0,
                title = "EasyChat是一款开源的社交类的App。主要包含消息、好友、群组等相关的IM核心功能",
                niceShareDate = "2021.02.22 12:35:52",
                superChapterName = "广场Tab",
                chapterName = "自助",
                shareUser = "鸿洋",
                link = "https://mp.weixin.qq.com/s/xWYe-uxgXTPuitYcLgXYNg",
                envelopePic = "1234445",
                desc = "本项目使用 MVVM 模式架构，使用 Jetpack 组件实现，功能代码实现组件化，目标是编写一个 玩安卓 客户端\n" +
                        "目前 MVVM 框架已经完成，Http 框架已经完成。玩安卓客户端功能代码正在进行中，组件化将在基础功能实现之后完成，请持续关注。。。",
                collect = true,
                fresh = true
            ),

            Article(
                type = 0,
                title = "Android Window 如何确定大小/onMeasure()多次执行原因",
                niceShareDate = "2021.02.22 12:35:52",
                superChapterName = "广场Tab",
                chapterName = "自助",
                shareUser = "程序员徐公",
                link = "https://mp.weixin.qq.com/s/xWYe-uxgXTPuitYcLgXYNg",
                envelopePic = "",
                desc = "",
                collect = false,
                fresh = false
            ),

            Article(
                type = 0,
                title = "EasyChat是一款开源的社交类的App。主要包含消息、好友、群组等相关的IM核心功能",
                niceShareDate = "2021.02.22 12:35:52",
                superChapterName = "广场Tab",
                chapterName = "自助",
                shareUser = "鸿洋",
                link = "https://mp.weixin.qq.com/s/xWYe-uxgXTPuitYcLgXYNg",
                envelopePic = "",
                desc = "本项目使用 MVVM 模式架构，使用 Jetpack 组件实现，功能代码实现组件化，目标是编写一个 玩安卓 客户端\n" +
                        "目前 MVVM 框架已经完成，Http 框架已经完成。玩安卓客户端功能代码正在进行中，组件化将在基础功能实现之后完成，请持续关注。。。",
                collect = false,
                fresh = false
            ),
            Article(
                type = 0,
                title = "EasyChat是一款开源的社交类的App。主要包含消息、好友、群组等相关的IM核心功能",
                niceShareDate = "2021.02.22 12:35:52",
                superChapterName = "广场Tab",
                chapterName = "自助",
                shareUser = "鸿洋",
                link = "https://mp.weixin.qq.com/s/xWYe-uxgXTPuitYcLgXYNg",
                envelopePic = "1234445",
                desc = "本项目使用 MVVM 模式架构，使用 Jetpack 组件实现，功能代码实现组件化，目标是编写一个 玩安卓 客户端\n" +
                        "目前 MVVM 框架已经完成，Http 框架已经完成。玩安卓客户端功能代码正在进行中，组件化将在基础功能实现之后完成，请持续关注。。。",
                collect = false,
                fresh = false
            ),
        )


        val testQaData = (1 .. 20).map {
            Article(
                type = 0,
                title = "EasyChat是一款开源的社交类的App。主要包含消息、好友、群组等相关的IM核心功能",
                niceShareDate = "2小时前",
                superChapterName = "广场Tab",
                chapterName = "自助",
                shareUser = "鸿洋",
                link = "https://mp.weixin.qq.com/s/xWYe-uxgXTPuitYcLgXYNg",
                envelopePic = "",
                desc = "本项目使用 MVVM 模式架构，使用 Jetpack 组件实现，功能代码实现组件化，目标是编写一个 玩安卓 客户端\n" +
                        "目前 MVVM 框架已经完成，Http 框架已经完成。玩安卓客户端功能代码正在进行中，组件化将在基础功能实现之后完成，请持续关注。。。",
                collect = false,
                fresh = true
            )
        }
    }
}


